Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core.transform-kit): 检查缺少方法时先看旧类是否有实现 #1270

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

shifujun
Copy link
Collaborator

典型的场景应该是androidx等库对新版本Android SDK新增API的依赖非常及时,
但这些依赖并不总是有用。在低版本Android SDK上编译时,新增API不存在对
这些库实际上没有影响。

我们检查替换类名时也应该先看看原先依赖的方法是否能找到。如果本来就找不到,
那我们的新类也没必要一定实现缺失的方法。

fix #1251

典型的场景应该是androidx等库对新版本Android SDK新增API的依赖非常及时,
但这些依赖并不总是有用。在低版本Android SDK上编译时,新增API不存在对
这些库实际上没有影响。

我们检查替换类名时也应该先看看原先依赖的方法是否能找到。如果本来就找不到,
那我们的新类也没必要一定实现缺失的方法。

Tencent#1251
@shifujun shifujun merged commit d9deb2f into Tencent:master Dec 12, 2023
9 checks passed
@shifujun shifujun deleted the 1251 branch December 12, 2023 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

缺少方法: obtainStyledAttributes 我该怎么解决
1 participant